﻿using SunnyPaine.Autofac.Extension.Mvvm.Annotations;
using SunnyPaine.Autofac.Extension.Mvvm.Test.Config;
using SunnyPaine.Autofac.Extension.Stereotype.Attributes;

namespace SunnyPaine.Autofac.Extension.Mvvm.Test.ViewModel
{
    [Controller(Scope = true)]
    public class ChildViewModel : BasicViewModel, IChildViewModel
    {
        [Resource(Name = "GetTest")]
        private ITest Test { get; set; }



        [Command]
        public void TestConfig()
        {
            this.Test.Write();
        }
    }
}
